﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using Loki;

namespace Loki.Core.Test.Events
{
	public class DummyObserver
	{
		public DummyObserver(DummyObserved P_Watched)
		{
			Count = 0;
			this.WatchChange(P_Watched, w => w.Property, o => o.Observed_Changed);
		}

		public int Count { get; set; }

		private void Observed_Changed(object sender, PropertyChangedEventArgs e)
		{
			Count++;
		}
	}
}
